package com.bw.task.adapter;

import android.view.View;
import android.widget.ImageView;

import com.bw.task.R;
import com.bw.task.bean.History;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class MyAdapter extends BaseQuickAdapter<History, BaseViewHolder> {
    public MyAdapter(int layoutResId, @Nullable List<History> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, History history) {
        baseViewHolder.setText(R.id.search_name,history.getName());
        ImageView view = baseViewHolder.getView(R.id.search_close);
    }
}
